package s16.ch19.ex2;

public class Person {

	private String name;
	
	@Separator(trailing = ":", ending = "/") private String lastname;
	
	@Separator(ending = ";", trailing = ":") private String company;

	public Person(String name, String lastname, String company) {
		setName(name);
		setLastname(lastname);
		setCompany(company);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	
	@Override
	public String toString() {
		return "Person [name=" + name + ", lastname=" + lastname + ", company=" + company + "]";
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
}
